package com.ffws.media.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author JC
 * @description 媒体文件
 * @Date 2023-9-4 11:29
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "media_files")
@ApiModel("MediaFiles媒体文件")
public class MediaFiles implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键(文件的md5)",required = true)
    private String id;

    @ApiModelProperty(value = "文件名",required = true)
    private String name;

    @ApiModelProperty(value = "文件类型:(0为图片,1为视频,2为其它)",required = true)
    private Integer type;

    @ApiModelProperty(value = "存储目录",required = true)
    private String bucket;

    @ApiModelProperty(value = "存储路径",required = true)
    private String filePath;

    @ApiModelProperty(value = "媒资文件访问地址",required = true)
    private String url;

}
